package com.zhongyouyun.admin.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.MenuModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 资源表服务类
 */

public interface MenuService extends IService<MenuModel> {

    IPage<MenuModel> selectPage(Page<MenuModel> userPage, QueryWrapper<MenuModel> queryWrapper);

    List<MenuModel> selectList(QueryWrapper<MenuModel> queryWrapper);

    List<Tree<String>> findMenuTreeList(MenuModel menuModel);

    List<Tree<Long>> findMenuTreeLists(MenuModel menuModel);
}
